package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Client;
import com.olddriver.crm.domain.ClientPlan;
import com.olddriver.crm.query.ClientPlanQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientPlanMapper {

    int delete(Long id);

    int save(ClientPlan clientPlan);

    ClientPlan get(Long id);

    List<ClientPlan> list();

    int update(ClientPlan clientPlan);

    int queryTotal(ClientPlanQueryObject qo);

    List<Client> queryRows(ClientPlanQueryObject qo);

    void sign(@Param("id") Long id, @Param("result_id") Integer result_id);
}